package org.progin.cloudfolder.msg;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class RevInfoPayload implements Payload {
	
	public int rev;

	public RevInfoPayload(int rev2) {
		rev = rev2;
	}

	@Override
	public byte getId() {
		return Payload.REVINFO;
	}

	@Override
	public void write(DataOutputStream os) throws IOException {
		os.writeInt(rev);
	}

	@Override
	public void read(DataInputStream is) throws IOException {
		rev = is.readInt();
	}

}
